package com.wanxi.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Li
 * @Date 2023/5/15 15:51
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ApiModel(value = "服务领域",description = "描述服务领域对象")
@TableName("major")
public class MajorModel {
    @TableId(value = "id", type = IdType.ASSIGN_ID)//雪花算法
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "服务领域id",example = "1678239961299619841")
    private Long id;
    @ApiModelProperty(value = "服务领域名称",example = "商标保护")
    private String name;
    @ApiModelProperty(value = "图片",example = "/xx.png")
    private String image;
    @ApiModelProperty(value = "创建时间",example = "2023-05-19 11:19:07")
    private String createTime;
    @ApiModelProperty(value = "修改时间",example = "2023-05-20 11:19:07")
    private String updateTime;
    @ApiModelProperty(value = "状态",example = "1")
    private Integer enable;
    @ApiModelProperty(value = "是否显示",example = "1")
    private Integer isShow;
    @ApiModelProperty(value = "备注",example = "民事")
    private String remark;
    @ApiModelProperty(value = "服务类型id",example = "2")
    private Integer majorId;

    @ApiModelProperty(value = "页数",example = "1")
    @TableField(exist = false)
    private Integer page;
    @ApiModelProperty(value = "每页条数",example = "10")
    @TableField(exist = false)
    private Integer limit;
    @ApiModelProperty(value = "服务类型名称",example = "国际法律服务")
    @TableField(exist = false)
    private String serviceName;


}
